package zms.roya.comm;
import java.util.ArrayList;
import java.util.List;

import zms.roya.oop.student;

public class listtest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
	   student stu=new student("zms",32);
	   student stu2=new student("ivy",24);
	   
	   List list=new ArrayList();
	   
	   list.add(stu);
	   list.add(stu2);
	   
	   for (int i=0; i<list.size();i++){
		   student st=(student)list.get(i);
		   System.out.println(st.getName());
		   System.out.print(st.getAge());
		   
		   
	   }

	}

}
